FilterFormat::toArray

public FilterFormat::toArray()

Gets an array of all property values.

Return value

mixed[] An array of property values, keyed by property name.

Overrides ConfigEntityBase::toArray

File

core/modules/filter/src/Entity/FilterFormat.php, line 166

Class

FilterFormat
Represents a text format.

Namespace

Drupal\filter\Entity

Code

public function toArray() {
  $properties = parent::toArray();
  // The 'roles' property is only used during install and should never
  // actually be saved.
  unset($properties['roles']);
  return $properties;
}
doc_Drupal
2016-10-29 09:14:34
Comments
Leave a Comment

Please login to continue.