UpdateBase.php in Express 8
File
themes/contrib/bootstrap/src/Plugin/Update/UpdateBase.php
View source
<?php
namespace Drupal\bootstrap\Plugin\Update;
use Drupal\bootstrap\Bootstrap;
use Drupal\bootstrap\Plugin\PluginBase;
use Drupal\bootstrap\Theme;
class UpdateBase extends PluginBase implements UpdateInterface {
public function getDescription() {
return isset($this->pluginDefinition['description']) ? $this->pluginDefinition['description'] : NULL;
}
public function getLabel() {
return !empty($this->pluginDefinition['label']) ? $this->pluginDefinition['label'] : NULL;
}
public function getProvider() {
return isset($this->pluginDefinition['provider']) ? $this->pluginDefinition['provider'] : FALSE;
}
public function getSchema() {
return (int) $this
->getPluginId();
}
public function getSeverity() {
return isset($this->pluginDefinition['severity']) ? $this->pluginDefinition['severity'] : FALSE;
}
public function getTheme() {
return Bootstrap::getTheme($this->pluginDefinition['provider']);
}
public function isPrivate() {
return !empty($this->pluginDefinition['private']);
}
public function process(Theme $theme, array &$context) {
}
public function getLevel() {
return $this
->getSeverity();
}
public function getTitle() {
return $this
->getLabel();
}
}