Jackalope\NodeType\NodeDefinition::getRequiredPrimaryTypes PHP Method

getRequiredPrimaryTypes() public method

{@inheritDoc}
    public function getRequiredPrimaryTypes()
    {
        // TODO if this is not attached to a live NodeType, return null
        if (empty($this->requiredPrimaryTypes)) {
            foreach ($this->requiredPrimaryTypeNames as $primaryTypeName) {
                $this->requiredPrimaryTypes[] = $this->nodeTypeManager->getNodeType($primaryTypeName);
            }
        }
        return $this->requiredPrimaryTypes;
    }