You are here

public function EntityUsageTrackBase::getApplicableFieldTypes in Entity Usage 8.3

Same name and namespace in other branches
  1. 8.2 src/EntityUsageTrackBase.php \Drupal\entity_usage\EntityUsageTrackBase::getApplicableFieldTypes()

Returns the field types this plugin is capable of tracking.

Return value

array An indexed array of field type names, as defined in the plugin's annotation under the key "field_types".

Overrides EntityUsageTrackInterface::getApplicableFieldTypes

2 calls to EntityUsageTrackBase::getApplicableFieldTypes()
EntityUsageTrackBase::getAllBottomLevelTargets in src/EntityUsageTrackBase.php
Calculates all bottom-level targets for a given entity.
EntityUsageTrackBase::isApplicable in src/EntityUsageTrackBase.php
Detects whether this plugin should act on a particular entity.

File

src/EntityUsageTrackBase.php, line 133

Class

EntityUsageTrackBase
Base implementation for track plugins.

Namespace

Drupal\entity_usage

Code

public function getApplicableFieldTypes() {
  return $this->pluginDefinition['field_types'] ?: [];
}