function ExecutionContext::getPropertyName

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::getPropertyName()
  2. 8.9.x core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::getPropertyName()
  3. 11.x core/lib/Drupal/Core/Validation/ExecutionContext.php \Drupal\Core\Validation\ExecutionContext::getPropertyName()

File

core/lib/Drupal/Core/Validation/ExecutionContext.php, line 195

Class

ExecutionContext
Defines an execution context class.

Namespace

Drupal\Core\Validation

Code

public function getPropertyName() : ?string {
    return $this->metadata instanceof PropertyMetadataInterface ? $this->metadata
        ->getPropertyName() : NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.