You are here

public function DeleteForm::__construct in Activity 8

Constructs an object.

Parameters

\Drupal\Core\Database\Connection $database: The connection to the database.

\Drupal\Core\Path\CurrentPathStack $currentPath: The current path.

File

src/Form/DeleteForm.php, line 41

Class

DeleteForm
Delete base form.

Namespace

Drupal\activity\Form

Code

public function __construct(Connection $database, CurrentPathStack $currentPath) {
  $this->database = $database;
  $this->currentPath = $currentPath;
  $this->pathArgs = $path_args = explode('/', $this->currentPath
    ->getPath());
}