| @@ 36-46 (lines=11) @@ | ||
| 33 | ); |
|
| 34 | } |
|
| 35 | ||
| 36 | protected function removeInvalidSelf(LoggerInterface $logger) |
|
| 37 | { |
|
| 38 | $form = new self($this->configuration, 0, 0, 'form'); |
|
| 39 | if ($this->hasAncestor($form)) { |
|
| 40 | $logger->debug('Removing ' . $this . '. Cannot have a "form" element ancestor.'); |
|
| 41 | ||
| 42 | return true; |
|
| 43 | } |
|
| 44 | ||
| 45 | return false; |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||
| @@ 32-42 (lines=11) @@ | ||
| 29 | ); |
|
| 30 | } |
|
| 31 | ||
| 32 | protected function removeInvalidSelf(LoggerInterface $logger) |
|
| 33 | { |
|
| 34 | $label = new self($this->configuration, 0, 0, 'label'); |
|
| 35 | if ($this->hasAncestor($label)) { |
|
| 36 | $logger->debug('Removing ' . $this . '. Cannot be have "label" element ancestor.'); |
|
| 37 | ||
| 38 | return true; |
|
| 39 | } |
|
| 40 | ||
| 41 | return false; |
|
| 42 | } |
|
| 43 | ||
| 44 | public function isInteractiveContent() |
|
| 45 | { |
|
| @@ 35-45 (lines=11) @@ | ||
| 32 | ); |
|
| 33 | } |
|
| 34 | ||
| 35 | protected function removeInvalidSelf(LoggerInterface $logger) |
|
| 36 | { |
|
| 37 | $meter = new self($this->configuration, 0, 0, 'meter'); |
|
| 38 | if ($this->hasAncestor($meter)) { |
|
| 39 | $logger->debug('Removing ' . $this . '. "Meter" element cannot contain other "meter" elements.'); |
|
| 40 | ||
| 41 | return true; |
|
| 42 | } |
|
| 43 | ||
| 44 | return false; |
|
| 45 | } |
|
| 46 | } |
|
| 47 | ||
| @@ 29-39 (lines=11) @@ | ||
| 26 | } |
|
| 27 | } |
|
| 28 | ||
| 29 | protected function removeInvalidSelf(LoggerInterface $logger) |
|
| 30 | { |
|
| 31 | $dfn = new self($this->configuration, 0, 0, 'dfn'); |
|
| 32 | if ($this->hasAncestor($dfn)) { |
|
| 33 | $logger->debug('Removing ' . $this . '. Element "dfn" cannot contain "dfn" elements.'); |
|
| 34 | ||
| 35 | return true; |
|
| 36 | } |
|
| 37 | ||
| 38 | return false; |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||