You are here

class PublicFieldInfoNull in RESTful 7.2

Hierarchy

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\PublicFieldInfo
View 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

Namesort descending Modifiers Type Description Overrides
PublicFieldInfoNull::addCategory public function Add categories to the field info. Overrides PublicFieldInfoInterface::addCategory
PublicFieldInfoNull::addSectionDefaults public function Merges default data in a section if it's not populated. Overrides PublicFieldInfoInterface::addSectionDefaults
PublicFieldInfoNull::getSection public function Gets the section. Overrides PublicFieldInfoInterface::getSection
PublicFieldInfoNull::prepare public function Generates an structured array ready to be encoded. Overrides PublicFieldInfoInterface::prepare
PublicFieldInfoNull::__construct public function PublicFieldInfoBase constructor.