public function PublicFieldInfoBase::__construct in RESTful 7.2
PublicFieldInfoBase constructor.
Parameters
string $field_name: The name of the field.
array[] $sections: The array of categories information.
1 call to PublicFieldInfoBase::__construct()
- PublicFieldInfoEntity::__construct in src/
Plugin/ resource/ Field/ PublicFieldInfo/ PublicFieldInfoEntity.php - PublicFieldInfoBase constructor.
1 method overrides PublicFieldInfoBase::__construct()
- PublicFieldInfoEntity::__construct in src/
Plugin/ resource/ Field/ PublicFieldInfo/ PublicFieldInfoEntity.php - PublicFieldInfoBase constructor.
File
- src/
Plugin/ resource/ Field/ PublicFieldInfo/ PublicFieldInfoBase.php, line 63 - Contains \Drupal\restful\Plugin\resource\Field\PublicFieldInfo\PublicFieldInfoBase.
Class
Namespace
Drupal\restful\Plugin\resource\Field\PublicFieldInfoCode
public function __construct($field_name, array $sections = array()) {
$this->fieldName = $field_name;
$sections = drupal_array_merge_deep($this::$defaultSections, $sections);
foreach ($sections as $section_name => $section_info) {
$this
->addCategory($section_name, $section_info);
}
}