Sulu\Component\Content\Compat\PropertyInterface::getContentTypeName PHP Method

getContentTypeName() public method

returns name of content type.
public getContentTypeName ( ) : string
return string
    public function getContentTypeName();

Usage Example

Example #1
0
 /**
  * Returns parameters for given property merged wit default parameters.
  *
  * @param PropertyInterface $property
  *
  * @return array
  */
 public function getParamsFunction(PropertyInterface $property)
 {
     $typeParams = [];
     if ($this->contentTypeManager->has($property->getContentTypeName())) {
         $type = $this->getTypeFunction($property->getContentTypeName());
         $typeParams = $type->getDefaultParams($property);
     }
     return $this->mergeRecursive($typeParams, $property->getParams());
 }
All Usage Examples Of Sulu\Component\Content\Compat\PropertyInterface::getContentTypeName