You are here

public function PublicFieldInfoInterface::addSectionDefaults in RESTful 7.2

Merges default data in a section if it's not populated.

Parameters

string $section_name: The name of the categories. By default RESTful suports 'info', 'form_element' and 'data'.

array $section_info: The structured array with the section information.

2 methods override PublicFieldInfoInterface::addSectionDefaults()
PublicFieldInfoBase::addSectionDefaults in src/Plugin/resource/Field/PublicFieldInfo/PublicFieldInfoBase.php
Merges default data in a section if it's not populated.
PublicFieldInfoNull::addSectionDefaults in src/Plugin/resource/Field/PublicFieldInfo/PublicFieldInfoNull.php
Merges default data in a section if it's not populated.

File

src/Plugin/resource/Field/PublicFieldInfo/PublicFieldInfoInterface.php, line 52
Contains \Drupal\restful\Plugin\resource\Field\PublicFieldInfo\PublicFieldInfoInterface.

Class

PublicFieldInfoInterface

Namespace

Drupal\restful\Plugin\resource\Field\PublicFieldInfo

Code

public function addSectionDefaults($section_name, array $section_info);