You are here

public function EventHandler::hasTag in Services Client 7.2

Check if event has specific tag.

Parameters

string $tag: Tag name.

Return value

bool TRUE if event has tag.

2 calls to EventHandler::hasTag()
EventHandler::addTag in include/event.inc
Add event tag.
EventHandler::removeTag in include/event.inc
Remove tag from event.

File

include/event.inc, line 824

Class

EventHandler
Event handler plugin.

Code

public function hasTag($tag) {
  return in_array($tag, $this->tags);
}