function ConfigTarget::isMultiTarget

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Form/ConfigTarget.php \Drupal\Core\Form\ConfigTarget::isMultiTarget()

Indicates if this object targets multiple property paths.

Return value

bool TRUE if this object is targeting multiple property paths, otherwise FALSE.

2 calls to ConfigTarget::isMultiTarget()
ConfigTarget::getValue in core/lib/Drupal/Core/Form/ConfigTarget.php
Retrieves the mapped value from config.
ConfigTarget::setValue in core/lib/Drupal/Core/Form/ConfigTarget.php
Sets the submitted value from config.

File

core/lib/Drupal/Core/Form/ConfigTarget.php, line 258

Class

ConfigTarget
Represents the mapping of a config property to a form element.

Namespace

Drupal\Core\Form

Code

private function isMultiTarget() : bool {
    return count($this->propertyPaths) > 1;
}

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