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
Namespace
Drupal\restful\Plugin\resource\Field\PublicFieldInfoCode
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;
}