class FooTable in FooTable 8.2
Same name in this branch
- 8.2 src/FooTable.php \Drupal\footable\FooTable
- 8.2 src/Element/FooTable.php \Drupal\footable\Element\FooTable
- 8.2 src/Plugin/views/style/FooTable.php \Drupal\footable\Plugin\views\style\FooTable
Hierarchy
- class \Drupal\footable\FooTable implements FooTableInterface
Expanded class hierarchy of FooTable
4 string references to 'FooTable'
1 service uses FooTable
File
- src/
FooTable.php, line 11
Namespace
Drupal\footableView source
class FooTable implements FooTableInterface {
/**
* The FooTable breakpoint storage.
*
* @var \Drupal\Core\Entity\ContentEntityStorageInterface
*/
protected $breakpointStorage;
/**
* The FooTable config.
*
* @var \Drupal\Core\Config\Config
*/
protected $config;
/**
* Constructs a FooTable object.
*
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
* The entity type manager.
* @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
* The config factory.
*/
public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory) {
$this->breakpointStorage = $entityTypeManager
->getStorage('footable_breakpoint');
$this->config = $configFactory
->get('footable.settings');
}
/**
* {@inheritdoc}
*/
public function getLibrary() {
$library = $this->config
->get('plugin_type') . '_' . $this->config
->get('plugin_compression');
return 'footable/footable_' . $library;
}
/**
* {@inheritdoc}
*/
public function getBreakpoints() {
$breakpoints = [];
/* @var \Drupal\footable\Entity\FooTableBreakpointInterface $breakpoint */
foreach ($this->breakpointStorage
->loadMultiple() as $breakpoint) {
$breakpoints[$breakpoint
->id()] = $breakpoint
->getBreakpoint();
}
return $breakpoints;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FooTable:: |
protected | property | The FooTable breakpoint storage. | |
FooTable:: |
protected | property | The FooTable config. | |
FooTable:: |
public | function |
Overrides FooTableInterface:: |
|
FooTable:: |
public | function |
Overrides FooTableInterface:: |
|
FooTable:: |
public | function | Constructs a FooTable object. |