You are here

public function BeanPlugin::getInfo in Bean (for Drupal 7) 7

Get Plugin info

Overrides BeanTypePluginInterface::getInfo

3 calls to BeanPlugin::getInfo()
BeanPlugin::getDescription in plugins/BeanPlugin.class.php
Get the description
BeanPlugin::getLabel in plugins/BeanPlugin.class.php
Get the label
BeanPlugin::isEditable in plugins/BeanPlugin.class.php
Is the bean type editable

File

plugins/BeanPlugin.class.php, line 15
Base Plugin Class

Class

BeanPlugin
@file Base Plugin Class

Code

public function getInfo($key = NULL) {
  if (!empty($key) && isset($this->plugin_info[$key])) {
    return $this->plugin_info[$key];
  }
  return $this->plugin_info;
}