public function getFieldDefinitionById($fieldDefinitionId)
    {
        if (isset($this->fieldDefinitionsById[$fieldDefinitionId])) {
            return $this->fieldDefinitionsById[$fieldDefinitionId];
        }

        return null;
    }
public function getFieldDefinitionById($fieldDefinitionId)
    {
        if (isset($this->fieldDefinitionsById[$fieldDefinitionId])) {
            return $this->fieldDefinitionsById[$fieldDefinitionId];
        }

        return null;
    }
public function getFieldDefinitionById ( $ fieldDefinitionId ) { if ( isset ( $ this -> fieldDefinitionsById [ $ fieldDefinitionId ] ) ) { return $ this -> fieldDefinitionsById [ $ fieldDefinitionId ] ; } return null ; }
This method returns the field definition for the given id.

@param mixed $fieldDefinitionId

@return \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
This method returns the field definition for the given id .