You are here

public function Blacklist::setUp in Block Blacklist [Deprecated] 8

Configure variables based on configuration settings.

File

src/Blacklist.php, line 61

Class

Blacklist
Service to remove blocks from a list.

Namespace

Drupal\block_blacklist

Code

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);
}