/** * {@inheritdoc} */ public function getActiveNodeTypes(NodeInterface $node) { $nodeTypes = array(); foreach ($this->nodeTypeRegistry->getConfigs() as $config) { if ($node->getType() === $config->getType() || $this->nodeValidator->validateByOnlyOne($config->getType(), $node->getTree()) && (!$config->getParentTypes() || $this->nodeValidator->validateByParent($config->getType(), $node->getParent()))) { $nodeTypes[$config->getType()] = $config->getType(); } } return array_values($nodeTypes); }