You are here

public function Package::appendDependency in Features 8.3

Same name and namespace in other branches
  1. 8.4 src/Package.php \Drupal\features\Package::appendDependency()

Parameters

string $dependency:

Return value

$this

File

src/Package.php, line 514

Class

Package
Defines a value object for storing package related data.

Namespace

Drupal\features

Code

public function appendDependency($dependency) {
  $dependencies = $this
    ->getDependencies();
  array_push($dependencies, $dependency);
  return $this
    ->setDependencies($dependencies);
}