*/
public function __construct()
{
$this->p = new TemplateInspector('
');
}
/**
* {@inheritdoc}
*/
public function generateBooleanRules(TemplateInspector $src)
{
$rules = [];
if ($src->allowsChild($this->p) && $src->isBlock() && !$this->p->closesParent($src))
{
$rules['createParagraphs'] = true;
}
if ($src->closesParent($this->p))
{
$rules['breakParagraph'] = true;
}
return $rules;
}
}