eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::loadTypeDataByIdentifier PHP Méthode

loadTypeDataByIdentifier() abstract public méthode

Loads an array with data about the type referred to by $identifier in $status.
abstract public loadTypeDataByIdentifier ( string $identifier, integer $status ) : array(int=>array(string=>mixed))
$identifier string
$status integer
Résultat array(int=>array(string=>mixed))
    public abstract function loadTypeDataByIdentifier($identifier, $status);

Usage Example

 /**
  * Loads a (defined) content type by identifier
  *
  * Note: This method is responsible of having the Field Definitions of the loaded ContentType sorted by placement.
  *
  * @param string $identifier
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If defined type is not found
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Type
  */
 public function loadByIdentifier( $identifier )
 {
     $rows = $this->contentTypeGateway->loadTypeDataByIdentifier(
         $identifier, Type::STATUS_DEFINED
     );
     return $this->loadFromRows( $rows, $identifier, Type::STATUS_DEFINED );
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::loadTypeDataByIdentifier