You are here

public function RulesIdentifiableDataWrapper::getIdentifier in Rules 7.2

Returns the identifier of the wrapped data.

Overrides EntityStructureWrapper::getIdentifier

File

includes/rules.state.inc, line 712
Contains the state and data related stuff.

Class

RulesIdentifiableDataWrapper
A wrapper class similar to the EntityDrupalWrapper, but for non-entities.

Code

public function getIdentifier() {
  return $this
    ->dataAvailable() && $this
    ->value() ? $this->id : NULL;
}