You are here

class crumbs_InjectedAPI_Collection_DefaultValueCollection in Crumbs, the Breadcrumbs suite 7.2

Hierarchy

Expanded class hierarchy of crumbs_InjectedAPI_Collection_DefaultValueCollection

File

lib/InjectedAPI/Collection/DefaultValueCollection.php, line 4

View source
class crumbs_InjectedAPI_Collection_DefaultValueCollection {

  /**
   * Default weights for some plugin keys.
   *
   * @var mixed[]
   *   Format: $[$key] = $weight|false
   */
  protected $defaultValues = array();

  /**
   * @return mixed[]
   *   Format: $[$key] = false|$weight
   * @throws Exception
   */
  function getDefaultValues() {
    return $this->defaultValues;
  }

  /**
   * @param string $key
   * @param int|false $value
   */
  function setDefaultValue($key, $value) {
    $this->defaultValues[$key] = $value;
  }

}

Members