You are here

public function PublicFieldInfoInterface::addCategory in RESTful 7.2

Add categories to the field info.

Parameters

string $category_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::addCategory()
PublicFieldInfoBase::addCategory in src/Plugin/resource/Field/PublicFieldInfo/PublicFieldInfoBase.php
Add categories to the field info.
PublicFieldInfoNull::addCategory in src/Plugin/resource/Field/PublicFieldInfo/PublicFieldInfoNull.php
Add categories to the field info.

File

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

Class

PublicFieldInfoInterface

Namespace

Drupal\restful\Plugin\resource\Field\PublicFieldInfo

Code

public function addCategory($category_name, array $section_info);