/** * {@inheritdoc} */ public function resolveMetadataForNode(NodeInterface $node) { if (false === $node->hasProperty('jcr:mixinTypes')) { return; } $mixinTypes = (array) $node->getPropertyValue('jcr:mixinTypes'); foreach ($mixinTypes as $mixinType) { if (true == $this->metadataFactory->hasMetadataForPhpcrType($mixinType)) { return $this->metadataFactory->getMetadataForPhpcrType($mixinType); } } return; }
/** * {@inheritdoc} */ public function hasMetadataForPhpcrType($phpcrType) { return $this->metadataFactory->hasMetadataForPhpcrType($phpcrType); }