2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
8 (function (Backbone, Drupal) {
9 Drupal.toolbar.ToolbarModel = Backbone.Model.extend({
19 areSubtreesLoaded: false,
21 isViewportOverflowConstrained: false,
23 orientation: 'horizontal',
27 isTrayToggleVisible: true,
39 validate: function validate(attributes, options) {
40 if (attributes.orientation === 'horizontal' && this.get('locked') && !options.override) {
41 return Drupal.t('The toolbar cannot be set to a horizontal orientation when it is locked.');