You are here

public function PublicFieldInfoEntity::__construct in RESTful 7.2

PublicFieldInfoBase constructor.

Parameters

string $field_name: The name of the field.

string $property: The name of the Drupal field.

string $entity_type: The entity type.

string $bundle: The bundle.

array[] $sections: The array of categories information.

Overrides PublicFieldInfoBase::__construct

File

src/Plugin/resource/Field/PublicFieldInfo/PublicFieldInfoEntity.php, line 47
Contains \Drupal\restful\Plugin\resource\Field\PublicFieldInfo\PublicFieldInfoEntity.

Class

PublicFieldInfoEntity

Namespace

Drupal\restful\Plugin\resource\Field\PublicFieldInfo

Code

public function __construct($field_name, $property, $entity_type, $bundle, array $sections = array()) {
  parent::__construct($field_name, $sections);
  $this->property = $property;
  $this->entityType = $entity_type;
  $this->bundle = $bundle;
}