MenuTreeStorage::serializedFields

protected MenuTreeStorage::serializedFields()

Determines serialized fields in the storage.

Return value

array A list of fields that are serialized in the database.

File

core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 1176

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

protected function serializedFields() {
  if (empty($this->serializedFields)) {
    $schema = static::schemaDefinition();
    foreach ($schema['fields'] as $name => $field) {
      if (!empty($field['serialize'])) {
        $this->serializedFields[] = $name;
      }
    }
  }
  return $this->serializedFields;
}
doc_Drupal
2016-10-29 09:27:42
Comments
Leave a Comment

Please login to continue.