Schema/Schema.php
public function getDefinitionByIdentifier($identifier)
    {
        foreach($this->groups as $group) {
            foreach($group->getDefinitions() as $definition) {
                if ($definition->getIdentifier() === $identifier) {
                    return $definition;
                }
            }
        }
        return null;
    }
public function getDefinitionByIdentifier($identifier)
    {
        foreach($this->groups as $group) {
            foreach($group->getDefinitions() as $definition) {
                if ($definition->getIdentifier() === $identifier) {
                    return $definition;
                }
            }
        }
        return null;
    }
public function getDefinitionByIdentifier ( $ identifier ) { foreach ( $ this -> groups as $ group ) { foreach ( $ group -> getDefinitions ( ) as $ definition ) { if ( $ definition -> getIdentifier ( ) === $ identifier ) { return $ definition ; } } } return null ; }
Returns a characteristic definition by his identifier.

@param $identifier
@return Definition|null
Returns a characteristic definition by his identifier .