Bolt\Storage\Entity\Content::getContenttype PHP Method

getContenttype() public method

public getContenttype ( )
    public function getContenttype()
    {
        return $this->contenttype;
    }

Usage Example

Example #1
0
 /**
  * Dispatch the update event.
  *
  * @param Content $content
  * @param string  $type
  * @param string  $legacyType
  */
 private function dispatch(Content $content, $type, $legacyType)
 {
     $event = new StorageEvent($content, ['contenttype' => $content->getContenttype(), 'create' => false]);
     try {
         $this->dispatcher->dispatch("timed.{$type}", $event);
     } catch (\Exception $e) {
         $this->systemLogger->critical(sprintf('Dispatch handling failed for %s.', $content->getContenttype()), ['event' => 'exception', 'exception' => $e]);
     }
     try {
         /** @deprecated Deprecated since 3.1, to be removed in 4.0. */
         $this->dispatcher->dispatch("timed.{$legacyType}", $event);
     } catch (\Exception $e) {
         $this->systemLogger->critical(sprintf('Dispatch handling failed for %s.', $content->getContenttype()), ['event' => 'exception', 'exception' => $e]);
     }
 }
All Usage Examples Of Bolt\Storage\Entity\Content::getContenttype