You are here

public function PublicFieldInfoBase::prepare in RESTful 7.2

Generates an structured array ready to be encoded.

Return value

array The structured array of information.

Overrides PublicFieldInfoInterface::prepare

File

src/Plugin/resource/Field/PublicFieldInfo/PublicFieldInfoBase.php, line 74
Contains \Drupal\restful\Plugin\resource\Field\PublicFieldInfo\PublicFieldInfoBase.

Class

PublicFieldInfoBase

Namespace

Drupal\restful\Plugin\resource\Field\PublicFieldInfo

Code

public function prepare() {
  return $this->categories;
}