You are here

protected function IndexForm::getClusterStorage in Elasticsearch Connector 8

Same name and namespace in other branches
  1. 8.7 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()
  2. 8.2 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()
  3. 8.5 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()
  4. 8.6 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()

Get the cluster storage controller.

Return value

\Drupal\Core\Entity\EntityStorageInterface An instance of EntityStorageInterface.

File

src/Form/IndexForm.php, line 59
Contains \Drupal\elasticsearch_connector\Form\IndexForm.

Class

IndexForm
Form controller for node type forms.

Namespace

Drupal\elasticsearch_connector\Form

Code

protected function getClusterStorage() {
  return $this
    ->getEntityManager()
    ->getStorage('elasticsearch_cluster');
}