Organization Elements

This service is used to manage one or many Organization Elements.

find( $identifier, int $siteId = null )

Returns an Organization Element

ArgumentAcceptsDescription
$identifierstring, integer, OrganizationA unique Organization identifier
$siteIdinteger, nullThe Site Id that the Organization must belong to
{% set element = craft.organizations.elements.find(1) %}
{% set element = craft.organizations.elements.find('flipbox') %}

getQuery( $criteria )

Returns a Organization Query.

ArgumentAcceptsDescription
$criteriaarrayAn array of Organization Query criteria.
{% set query = craft.organizations.elements.getQuery({
    id: 1
}) %}

create( $config = [] )

Returns a new Organization Element (but does not save).

ArgumentAcceptsDescription
$configarrayAn organization configuration
{% set element = craft.organizations.elements.create({
    title: 'Flipbox Digital'
}) %}