function Dependency::offsetExists

File

core/lib/Drupal/Core/Extension/Dependency.php, line 120

Class

Dependency
A value object representing dependency information.

Namespace

Drupal\Core\Extension

Code

public function offsetExists($offset) {
    @trigger_error(sprintf('Array access to %s properties is deprecated. Use accessor methods instead. See https://www.drupal.org/node/2756875', __CLASS__), E_USER_DEPRECATED);
    return in_array($offset, [
        'name',
        'project',
        'original_version',
        'versions',
    ], TRUE);
}

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