You are here

public function FooTable::__construct in FooTable 8.2

Same name in this branch
  1. 8.2 src/FooTable.php \Drupal\footable\FooTable::__construct()
  2. 8.2 src/Plugin/views/style/FooTable.php \Drupal\footable\Plugin\views\style\FooTable::__construct()

Constructs a FooTable object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

File

src/FooTable.php, line 35

Class

FooTable

Namespace

Drupal\footable

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory) {
  $this->breakpointStorage = $entityTypeManager
    ->getStorage('footable_breakpoint');
  $this->config = $configFactory
    ->get('footable.settings');
}