You are here

public function Webhook::getMimeType in Webhooks 8

Get the content type.

Return value

string The content type string.

File

src/Webhook.php, line 254

Class

Webhook
Class Webhook .

Namespace

Drupal\webhooks

Code

public function getMimeType() {
  return explode('/', $this->contentType)[0];
}