/**
  * {@inheritdoc}
  */
 public function getFields($entity_type_id)
 {
     $entity_type = $this->entityManager->getDefinition($entity_type_id);
     if (!$entity_type->isSubclassOf('\\Drupal\\Core\\Entity\\FieldableEntityInterface')) {
         return array();
     }
     $map = $this->entityManager->getFieldMapByFieldType('comment');
     return isset($map[$entity_type_id]) ? $map[$entity_type_id] : array();
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getFieldMapByFieldType($field_type)
 {
     return $this->entityManager->getFieldMapByFieldType($field_type);
 }