/**
* @param array $row
* @param string $table
* @param string $field
* @param string $extensionKey
* @return bool
*/
public function trigger(array $row, $table, $field, $extensionKey = NULL)
{
if ('tt_content' === $table && NULL === $field) {
// This Provider will bypass checking for matched plugin-
// and/or content type in the case where $field is NULL.
// This case is triggered *once* per record from our
// TCEMain class; subsequent calls all have a $field and
// will pass through to the basic trigger() method.
// Note for implementers: if you subclass this ContentProvider
// in your own extension (which is perfectly valid to do!)
// please consider if you must override the trigger() method
// to ensure that your particular Provider only reacts when
// users save records that your Provider actually supports.
return TRUE;
}
return parent::trigger($row, $table, $field, $extensionKey);
}