public function BlockListOverride::setUp in Block List Override 1.0.x
Configure variables based on configuration settings.
File
- src/
BlockListOverride.php, line 68
Class
- BlockListOverride
- Service to remove blocks from a list.
Namespace
Drupal\block_list_overrideCode
public function setUp($settings) {
$this->match = !empty($settings) ? trim($settings['match']) : '';
$this->prefix = !empty($settings) ? trim($settings['prefix']) : '';
$this->regex = !empty($settings) ? trim($settings['regex']) : '';
$this->hasSettings = !empty($this->match . $this->prefix . $this->regex);
$this->isNegated = !empty($settings['negate']);
}