You are here

public function EntityExtraField::getActiveFieldTypeConditions in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/EntityExtraField.php \Drupal\entity_extra_field\Entity\EntityExtraField::getActiveFieldTypeConditions()

Get active field type conditions.

Return value

array An array of active field type conditions.

Overrides EntityExtraFieldInterface::getActiveFieldTypeConditions

1 call to EntityExtraField::getActiveFieldTypeConditions()
EntityExtraField::hasConditionsBeenMet in src/Entity/EntityExtraField.php
Has extra field conditions been met.

File

src/Entity/EntityExtraField.php, line 248

Class

EntityExtraField
Define entity extra field.

Namespace

Drupal\entity_extra_field\Entity

Code

public function getActiveFieldTypeConditions() {
  return array_filter($this
    ->getFieldTypeCondition(), static function ($value) {
    unset($value['id'], $value['negate'], $value['context_mapping']);
    return !empty(array_filter($value));
  });
}