You are here

protected function DataProviderEntity::getEntityInfo in RESTful 7.2

Get the entity info for the current entity the endpoint handling.

Parameters

string $type: Optional. The entity type.

Return value

array The entity info.

See also

entity_get_info().

2 calls to DataProviderEntity::getEntityInfo()
DataProviderEntity::create in src/Plugin/resource/DataProvider/DataProviderEntity.php
Create operation.
DataProviderEntity::getEntityFieldQuery in src/Plugin/resource/DataProvider/DataProviderEntity.php
Initialize an EntityFieldQuery (or extending class).

File

src/Plugin/resource/DataProvider/DataProviderEntity.php, line 508
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.

Class

DataProviderEntity
Class DataProviderEntity.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

protected function getEntityInfo($type = NULL) {
  return entity_get_info($type ? $type : $this->entityType);
}