class PublicFieldInfoNull in RESTful 7.2
Hierarchy
- class \Drupal\restful\Plugin\resource\Field\PublicFieldInfo\PublicFieldInfoNull implements PublicFieldInfoInterface
Expanded class hierarchy of PublicFieldInfoNull
1 file declares its use of PublicFieldInfoNull
- ResourceFieldBase.php in src/
Plugin/ resource/ Field/ ResourceFieldBase.php - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldBase.
File
- src/
Plugin/ resource/ Field/ PublicFieldInfo/ PublicFieldInfoNull.php, line 10 - Contains \Drupal\restful\Plugin\resource\Field\PublicFieldInfo\PublicFieldInfoNull.
Namespace
Drupal\restful\Plugin\resource\Field\PublicFieldInfoView source
class PublicFieldInfoNull implements PublicFieldInfoInterface {
/**
* PublicFieldInfoBase constructor.
*
* @param string $field_name
* The name of the field.
* @param array[] $sections
* The array of categories information.
*/
public function __construct($field_name, array $sections = array()) {
$this->fieldName = $field_name;
}
/**
* {@inheritdoc}
*/
public function prepare() {
return array();
}
/**
* {@inheritdoc}
*/
public function addCategory($category_name, array $section_info) {
}
/**
* {@inheritdoc}
*/
public function getSection($section_name) {
return array();
}
/**
* {@inheritdoc}
*/
public function addSectionDefaults($section_name, array $section_info) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PublicFieldInfoNull:: |
public | function |
Add categories to the field info. Overrides PublicFieldInfoInterface:: |
|
PublicFieldInfoNull:: |
public | function |
Merges default data in a section if it's not populated. Overrides PublicFieldInfoInterface:: |
|
PublicFieldInfoNull:: |
public | function |
Gets the section. Overrides PublicFieldInfoInterface:: |
|
PublicFieldInfoNull:: |
public | function |
Generates an structured array ready to be encoded. Overrides PublicFieldInfoInterface:: |
|
PublicFieldInfoNull:: |
public | function | PublicFieldInfoBase constructor. |