src/Panel/DefaultSortElement.php
protected function searchDefinitionByName($name)
    {
        foreach ($this->getGroupAndSortingDefinition() as $definition) {
            if ($name === $definition->getName()) {
                return $definition;
            }
        }

        return null;
    }
protected function searchDefinitionByName($name)
    {
        foreach ($this->getGroupAndSortingDefinition() as $definition) {
            if ($name === $definition->getName()) {
                return $definition;
            }
        }

        return null;
    }
protected function searchDefinitionByName ( $ name ) { foreach ( $ this -> getGroupAndSortingDefinition ( ) as $ definition ) { if ( $ name === $ definition -> getName ( ) ) { return $ definition ; } } return null ; }
Search a definition by it's name.

@param string $name The name.

@return GroupAndSortingDefinitionInterface|null
Search a definition by it s name .