You are here

public function Field::getCacheTags in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/field/Field.php \Drupal\views\Plugin\views\field\Field::getCacheTags()

The cache tags associated with this object.

When this object is modified, these cache tags will be invalidated.

Return value

string[] A set of cache tags.

Overrides CacheableDependencyInterface::getCacheTags

File

core/modules/views/src/Plugin/views/field/Field.php, line 979
Contains \Drupal\views\Plugin\views\field\Field.

Class

Field
A field that displays entity field data.

Namespace

Drupal\views\Plugin\views\field

Code

public function getCacheTags() {
  $field_definition = $this
    ->getFieldDefinition();
  $field_storage_definition = $this
    ->getFieldStorageDefinition();
  return Cache::mergeTags($field_definition instanceof CacheableDependencyInterface ? $field_definition
    ->getCacheTags() : [], $field_storage_definition instanceof CacheableDependencyInterface ? $field_storage_definition
    ->getCacheTags() : []);
}